< previous page page_87 next page >

Page 87
Puzzle 20
Making Connections
Figure P20-1 shows the final version of the RASTest program at design time.
0087-01.gif
Figure P20-1:
The RASTest program at design time
In Puzzles 18 and 19, you learned how to obtain a list of phone book entries and load a RASDIALPARAMS structure with information on a phone book entry. All that remains is to actually dial in and make a connection. This can be accomplished using the RasDial API function, described in the Win32 documentation as follows:
DWORD RasDial(
    LPRASDIALEXTENSIONS lpRasDialExtensions, // pointer to function
                                            // extensions data
    LPTSTR lpszPhonebook, // pointer to full path and file name of
                           // phone book file
    LPRASDIALPARAMS lpRasDialParams, // pointer to calling parameters data
    DWORD dwNotifierType, // specifies type of RasDial event handler

 
< previous page page_87 next page >